﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manager_add.aspx.cs" Inherits="manager_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员注册</title>
   
    <script type="text/javascript">

    function resetform()
    {
       document.getElementById("form1").reset()
    }

    function setNull()
    {
    document.getElementById('name').value='';
	    form1.reset();
    }
    </script>
</head>

<body>

<form id="form" runat="server">

  <div style="width:100%; margin-top:30px ">
                
        <table border="0" cellspacing="0" cellpadding="0" rules="all" style="width: 400px; margin:0 auto">

          <tr>

            <td width="123" height="25" align="left">用户名</td>

            <td width="268" align="left">
              
              <asp:TextBox ID="name" Width="128px" runat="server"></asp:TextBox>

              <asp:RequiredFieldValidator ControlToValidate="name"  runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>

          </tr>

          <tr>              

            <td height="25" align="left">密码</td>

            <td width="268" align="left">
            
              <asp:TextBox ID="password" Width="128px" runat="server" TextMode="Password"></asp:TextBox>
             
              <asp:RequiredFieldValidator ControlToValidate="password" ErrorMessage="不能为空" runat="server"></asp:RequiredFieldValidator>

            </td>
          </tr>

          <tr>

            <td height="25" align="left">确认密码</td>

            <td align="left">
              <asp:TextBox id="checkpassword" Width="128px" runat="server" TextMode="password" style="width:128px"></asp:TextBox>
            
              <asp:CompareValidator ControlToCompare="password" ControlToValidate="checkpassword" ErrorMessage="密码不一样" runat="server"></asp:CompareValidator>
            </td>

          </tr>
          
           <tr>
           <td colspan="2">
           &nbsp;
           </td>
         </tr>
          
         <tr>
           <td colspan="2" style="text-align:center">
             <asp:Button ID="Button1" Text="注册" Width="80px" runat="server" 
                   onclick="Button1_Click" />
             &nbsp;&nbsp;
             <asp:Button ID="Button2" Text="重置" OnClientClick="resetform();" Width="80px" runat="server" />
           </td>
         </tr>

        </table>

      </div>         

</form>

</body>

</html>
